package com.cennavi.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * Created by lixiaoshuang on 2018/10/16.
 */
@Mapper
public interface CommonMapper {
    public List<String> queryColumnsToShow(@Param("tabkeList") List<String> tabkeList);

    @Select("SELECT TABLE_NAME from information_schema.TABLES where TABLE_SCHEMA=(select database())")
    public List<String> queryListTables();
    public List<Map> queryData(@Param("tabkename") List<String> tabkeList,
                               @Param("param")Map param,
                               @Param("type")String type,
                               @Param("casttype")String casttype,
                               @Param("sql")String sql);



}
